﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Common.DBOper;

namespace VibrationTest
{
    public partial class frmProduct : Form
    {
        public frmProduct()
        {
            InitializeComponent();
        }
        OperateProduct operproduct = new OperateProduct();
        private void frmProduct_Load(object sender, EventArgs e)
        {
            LoadProduct();
        }


        public void LoadProduct() 
        {
            this.dataGridView1.Rows.Clear();
            List<Cls_Product> productlist = operproduct.GetProductList();
            if (productlist != null && productlist.Count>0)
            {
            for (int i = 0; i < productlist.Count; i++)
            {
                this.dataGridView1.Rows.Add(productlist[i].ProductNum, productlist[i].ChannelCount, productlist[i].MaxBandwidth, productlist[i].MaxLineCount);
            }
            }
        }
    }
}
